package com.mall.business.domain.entity;

import com.mall.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mall.common.core.domain.BaseEntity;

/**
 * 订单明细对象 bus_order_line
 *
 * @author zhonglin
 * @date 2020-05-24
 */
public class BusOrderLine
    extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 订单明细 id
   */
  private Long orderLineId;

  /**
   * 订单 id
   */
  @Excel(name = "订单 id")
  private Long orderId;

  /**
   * 数量
   */
  @Excel(name = "数量")
  private Long qty;

  /**
   * 零售单价
   */
  @Excel(name = "零售单价")
  private Long retailPrice;

  /**
   * 实售单价
   */
  @Excel(name = "实售单价")
  private Long currentPrice;

  /**
   * 零售金额
   */
  @Excel(name = "零售金额")
  private Long retailAmount;

  /**
   * 实售金额
   */
  @Excel(name = "实售金额")
  private Long currentAmount;

  /**
   * 是否退货（0-否 1-是）
   */
  @Excel(name = "是否退货", readConverterExp = "0=-否,1=-是")
  private String isReturn;

  public void setOrderLineId(Long orderLineId) {

    this.orderLineId = orderLineId;
  }

  public Long getOrderLineId() {

    return orderLineId;
  }

  public void setOrderId(Long orderId) {

    this.orderId = orderId;
  }

  public Long getOrderId() {

    return orderId;
  }

  public void setQty(Long qty) {

    this.qty = qty;
  }

  public Long getQty() {

    return qty;
  }

  public void setRetailPrice(Long retailPrice) {

    this.retailPrice = retailPrice;
  }

  public Long getRetailPrice() {

    return retailPrice;
  }

  public void setCurrentPrice(Long currentPrice) {

    this.currentPrice = currentPrice;
  }

  public Long getCurrentPrice() {

    return currentPrice;
  }

  public void setRetailAmount(Long retailAmount) {

    this.retailAmount = retailAmount;
  }

  public Long getRetailAmount() {

    return retailAmount;
  }

  public void setCurrentAmount(Long currentAmount) {

    this.currentAmount = currentAmount;
  }

  public Long getCurrentAmount() {

    return currentAmount;
  }

  public void setIsReturn(String isReturn) {

    this.isReturn = isReturn;
  }

  public String getIsReturn() {

    return isReturn;
  }

  @Override
  public String toString() {

    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("orderLineId", getOrderLineId())
                                                                    .append("orderId", getOrderId())
                                                                    .append("qty", getQty())
                                                                    .append("retailPrice", getRetailPrice())
                                                                    .append("currentPrice", getCurrentPrice())
                                                                    .append("retailAmount", getRetailAmount())
                                                                    .append("currentAmount", getCurrentAmount())
                                                                    .append("isReturn", getIsReturn())
                                                                    .append("createBy", getCreateBy())
                                                                    .append("createTime", getCreateTime())
                                                                    .append("updateBy", getUpdateBy())
                                                                    .append("updateTime", getUpdateTime())
                                                                    .append("remark", getRemark())
                                                                    .toString();
  }

}
